package com.woniuxy.mapper;

import com.work.framework.pojo.Goods;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

public interface GoodsMapper {
    @Select("select goods.gid gid, gname, gdescribe from goods inner join auction on goods.gid = auction.gid INNER JOIN bidder ON auction.aid = bidder.aid  where goods.gid=#{gid} and bidder.uid=#{uid} and goods.flage=1")
    Goods findGoodsByUidAndGid(Map <String, Integer> params);
}
